<?php
	require 'config.php';
	if($_SERVER['HTTP_REFERER'] != 'http://pic.com/admins/')
	{
		header('Location:/login.php');exit;
	}
	switch($_GET['act'])
	{
		case 1:
			$temp = '1.html';
			break;
		case 2:
			$temp = '2.html';
			break;
		default:
			header('Location:/login.php');exit;
			break;
	}
	$smarty->_display($temp);
?>